<?php
/**
 * Created by PhpStorm.
 * User: 轶杰
 * Date: 2016/10/16
 * Time: 17:59
 */
$this->registerJsFile('@web/js/upload.js',['depends'=>['app\assets\AppAsset']]);
?>
<form method="post" action="http://up.qiniu.com" enctype="multipart/form-data" id="form1">
    <input name="token" id="token" type="hidden" value="<?=$up_token?>">
    <input name="file" id="file" type="file" />
    <input type="button" value="上传" id="upload"/>
</form>
<div style="text-align: center">
<img id="loading" style="display: none;" src="<?=\yii\helpers\Url::to("@web/images/updating.gif"); ?>" alt="">
</div>
